using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Tilemaps;

public class TilemapLocators : MonoBehaviour
{
    public Tilemap tilemap;
    [SerializeField]
    private Vector3 cellPosition;

    void Update()
    {
        if (tilemap == null)
            return;
        cellPosition = tilemap.WorldToCell(transform.position);
    }

    public Vector3 GetCellPosition()
    {
        return cellPosition;
    }

}
